package com.ssy.lingxi.purchase.repository;

import com.ssy.lingxi.purchase.entity.purchaseinquiry.ExternalPurchaseInquiryLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*采购能力-采购需求单外部工作流转记录
* @date 2020/7/8
*/
@Repository
public interface ExternalPurchaseInquiryLogRepository extends JpaRepository<ExternalPurchaseInquiryLog, Long>, JpaSpecificationExecutor<ExternalPurchaseInquiryLog> {

    /**
     *查询需求单外部操作记录
     */
    List<ExternalPurchaseInquiryLog> findAllByPurchaseInquiryId(Long purchaseInquiryId);


    Boolean existsAllByPurchaseInquiryId(Long purchaseInquiryId);
}
